package org.example.meetingsystem.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum UserRole {
    ADMIN("ADMIN", "管理员"),
    EMPLOYEE("EMPLOYEE", "员工"),
    CUSTOMER("CUSTOMER", "客户");

    @EnumValue
    private final String code;
    private final String desc;

    UserRole(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
